package entity;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;



/**

 * category

 * @author 

 */

public class Category implements Serializable {

    //类别Id

    private Integer id;

    //父类别id当id=0时说明是根节点,一级类别

    private Integer parent_id;

    //类别名称

    private String name;

    //类别状态1-正常,2-已废弃

    private Integer status;

    //排序编号,同类展示顺序,数值相等则自然排序

    private Integer level;

    //表示每个结点会有子结点（可能是一个集合，集合中的每一个元素本身是Category类的对象

    private List<Category> children=new ArrayList<Category>();

    //建时间

    private Timestamp create_time;

    //更新时间

    private Timestamp update_time;

    private static final long serialVersionUID = 1L;



    public Integer getId() {

        return id;

    }



    public void setId(Integer id) {

        this.id = id;

    }



    public Integer getParent_id() {

        return parent_id;

    }



    public void setParent_id(Integer parent_id) {

        this.parent_id = parent_id;

    }



    public String getName() {

        return name;

    }



    public void setName(String name) {

        this.name = name;

    }



    public Integer getStatus() {

        return status;

    }



    public void setStatus(Integer status) {

        this.status = status;

    }



    public Integer getLevel() {

        return level;

    }



    public void setLevel(Integer level) {

        this.level = level;

    }



    public List<Category> getChildren() {

        return children;

    }



    public void setChildren(List<Category> children) {

        this.children = children;

    }



    public Timestamp getCreate_time() {

        return create_time;

    }



    public void setCreate_time(Timestamp create_time) {

        this.create_time = create_time;

    }



    public Timestamp getUpdate_time() {

        return update_time;

    }



    public void setUpdate_time(Timestamp update_time) {

        this.update_time = update_time;

    }

}